/*
 * @Description:
 * @Author: menglong.du
 * @Date: 2021-11-17 14:58:59
 * @LastEditTime: 2022-01-09 17:46:57
 * @LastEditors: menglong.du
 */
import { combineReducers } from 'redux' 

const appReducer = combineReducers({
	yourReducer: (state = {}) => state
})

const rootReducer = (state, action) => {
	if (action.type === 'USER_LOGOUT') {
		state = undefined
	}
	return appReducer(state, action)
}

export default rootReducer
